package com.powergisol.gis.service;

import com.powergisol.gis.config.ServiceFeignConfig;
import com.powergisol.gis.service.impl.MondbDataServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Date: 2019/9/19  14:11
 * Description:
 */
@FeignClient(value = "modelupload-service",fallback = MondbDataServiceImpl.class,configuration = ServiceFeignConfig.class)
public interface MondbDataService {

    @RequestMapping(value = "/modelupload/getFileUrl",method = RequestMethod.GET)
    String getFileUrl(@RequestParam(value = "serviceName") String serviceName, @RequestParam(value = "uuid") String uuid);

    @RequestMapping(value = "/modelupload/delByUuid",method = RequestMethod.GET)
    void delByUuid(@RequestParam(value = "uuid") String uuid);

    @RequestMapping(value = "/modelupload/upByMD5",method = RequestMethod.POST)
    Boolean upByMD5(@RequestParam(value = "uuid") String uuid,@RequestParam(value = "key") String key,@RequestParam(value = "object") String object);

    @RequestMapping(value = "/modelupload/test",method = RequestMethod.GET)
    String test();
}
